projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76b2336
)
(byte-optimize-form-code-walker):
author
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Jan 1998 02:23:21 +0000
(
02:23
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 22 Jan 1998 02:23:21 +0000
(
02:23
+0000)
If compiler-macroexpand is defined, use it.
lisp/emacs-lisp/byte-opt.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-opt.el
b/lisp/emacs-lisp/byte-opt.el
index be958e53abb51093d9dd1935be9a2fb2c0d57ee1..90154728f3404ddda9264107889159c4a4802434 100644
(file)
--- a/
lisp/emacs-lisp/byte-opt.el
+++ b/
lisp/emacs-lisp/byte-opt.el
@@
-504,6
+504,13
@@
(setq form (macroexpand form
byte-compile-macro-environment))))
(byte-optimize-form form for-effect))
+
+ ;; Support compiler macros as in cl.el.
+ ((and (fboundp 'compiler-macroexpand)
+ (not (eq form
+ (setq form (compiler-macroexpand form
+ byte-compile-macro-environment)))))
+ (byte-optimize-form form for-effect))
((not (symbolp fn))
(or (eq 'mocklisp (car-safe fn)) ; ha!